<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>订单列表-{$tpshop_config['shop_info_store_title']}</title>
    <meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}" />
    <meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />
    <link rel="stylesheet" href="__STATIC__/css/index.css" type="text/css">
    <link rel="stylesheet" href="__STATIC__/css/page.css" type="text/css">
    <script src="__STATIC__/js/jquery-1.10.2.min.js"></script>
    <script src="__STATIC__/js/slider.js"></script>

</head>

<body>
<!--------头部开始-------------->
<include file="Public/header" />
<!--------头部结束-------------->


    <div class="breadcrumb-area">   
		<div class="layout"> 
	    <foreach name="navigate_user" key="k" item="v">
	        <if condition="$k neq '首页'"> > </if>  
            <a href="{$v}">{$k}</a> 
        </foreach>
		</div>
    </div>

<div class="layout pa-to-10 fo-fa-ar">
    <!--菜单-->
    <include file="User/menu" />
    <!--菜单-->
    <div class="fr wi872">
        <div class="he50 wddd">
            <div class="fl ddd-h2">
                <h2><span>{$Think.lang.myorders}</span></h2>
            </div>

        </div>
        <div class="wddd-li">
            <ul>
                <li class="wddd-red" id="ALL"><a href="{:U('Home/User/order_list')}"><img src="__STATIC__/images/wddd_icon1.jpg" >{$Think.lang.allorders}</a></li>
                <li id="WAITPAY"><a href="{:U('Home/User/order_list',array('type'=>'WAITPAY'))}"><img src="__STATIC__/images/wddd_icon2.jpg" >{$Think.lang.obligation}<em></em></a></li>
                <li id="WAITSEND"><a href="{:U('Home/User/order_list',array('type'=>'WAITSEND'))}"><img src="__STATIC__/images/wddd_icon3.jpg" >{$Think.lang.Awaitingdelivery}<em></em></a></li>
                <li id="WAITRECEIVE"><a href="{:U('Home/User/order_list',array('type'=>'WAITRECEIVE'))}"><img src="__STATIC__/images/wddd_icon4.jpg" >{$Think.lang.waitforreceiving}<em></em></a></li>
                <li id="WAITCCOMMENT"><a href="{:U('Home/User/order_list',array('type'=>'WAITCCOMMENT'))}"><img src="__STATIC__/images/wddd_icon5.jpg" >{$Think.lang.noevaluation}<em></em></a></li>
            </ul>
        </div>
        <div class="wddd-js ov-in">
            <!--<div class="merge">-->
                <!--<label class="ma-ri-20 di-in-bl cu-po" for="checkallbox"><input class="ma-ri-10  ve-al-mi" id="checkallbox" type="checkbox"><span class="ve-al-mi fo-si-14 fo-fa-ta">全选</span></label>-->
                <!--<a class=" di-in-bl hb-merge" href="">合并支付</a>-->
            <!--</div>-->


            <div class="merge-list">
                <!--订单列表-->
				<if condition="!$lists">
				<div id="tips_message">
					<div class="message_tipws_content">
						<div class="tips_img"><img src="__STATIC__/images/tips_message.png" ></div>
						<div class="tipws_content">
                            {$Think.lang.notproducthint}
							<a href="{:U('Goods/goodsList')}">{$Think.lang.buygoods}<i class="icon-chevron-right-circle"></i></a>
						</div>
						<div class="clear"></div>
					</div>
				</div></if>
                <volist name="lists" id="list">
                    <div class="ma-0--1">
                        <div class="o-info o-inff">
                            <div class="fl">
                                <input class="o-ch ve-al-mi" type="checkbox" />
                                <span class=" ma-ri-15 co-888 fo-si-14">{$list.add_time|date='Y-m-d H:i:s',###}</span>
                                <span class="ma-ri-15 co-888 fo-si-14">{$Think.lang.orderid}：<a class="co-36c" href="">{$list.order_sn}</a></span>
                            </div>
                            <div class="fr te-al co-888 fo-si-14">{$list['order_status_desc']}</div>
                        </div>
                        <div class="o-pro">
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tbody>
                                <volist name="list.goods_list" id="good">
                                    <tr>
                                        <td class="col-pro-img">
                                            <p>
                                                <a title=" {$bi,$good[goods_id]|goods_name_shift}" href="{:U('Home/Goods/goodsInfo',array('id'=>$good['goods_id']))}" target="_blank">
                                                    <img alt=" {$bi,$good[goods_id]|goods_name_shift}" src="{$good.goods_id|goods_thum_images=78,104}">
                                                </a>
                                            </p>
                                        </td>
                                        <td class="col-pro-info te-al-le" ><p class="p-name"><a title="" target="_blank" href="{:U('Home/Goods/goodsInfo',array('id'=>$good['goods_id']))}">{$bi,$good[goods_id]|goods_name_shift} </a></p></td>
                                        <td class="col-price"><em>¥</em><span>{$good.goods_price}</span></td>
                                        <td class="col-price" style="display:none;"><em>¥</em><span>{$good.member_goods_price}</span></td>
                                        <td class="col-quty">{$good.goods_num}</td>

                                        <td rowspan="1" class="col-pay">
                                        <!--<if condition="($list[return_btn] eq 1) and ($good[is_send] eq 1)">-->
						                        <!--<p class="p-link">-->
                                                    <!--<a style="color:#999;" href="{:U('Home/User/return_goods',array('order_id'=>$list['order_id'],'order_sn'=>$list['order_sn'],'goods_id'=>$good['goods_id'],'spec_key'=>$good['spec_key']))}">{$Think.lang.refund}</a>-->
                                                <!--</p>-->
                                        <!--</if>-->
					                    <if condition="($list[comment_btn] eq 1) and ($good[is_comment] eq 0)">
                                            	<p class="p-link"><a href="{:U('Home/User/comment')}" target="_blank"><span>{$Think.lang.evaluate} </span></a></p>
                                        </if>
                                        </td>
                                        <!--<td rowspan="1" class="col-operate">-->
                                        <!--<p class="p-button"> <a class="button-operate-pay di-in-bl hb-merge" href="" target="_blank"><span>立即支付</span></a></p>-->
                                        <!--&lt;!&ndash;<p class="p-link"><a href="">修改订单</a></p>&ndash;&gt;-->
                                        <!--<p class="p-link"><a href="" >取消订单</a></p>-->
                                        <!--<p class="p-link"><a href="">订单详情</a></p>-->
                                        <!--</td>-->
                                    </tr>
                                </volist>
                                <tr>
                                    <td colspan="6" class="te-al-le litz-pa">

                                        <p>{$Think.lang.dealwith}:<span class="co-red fo-si-18">{$list['order_amount']}</span></p>
                                    </td>
                                    <td rowspan="1" class="col-operate" style="padding-left:10px;">
										<if condition="$list.cancel_btn eq 1"><p class="p-button"><a onClick="cancel_order({$list.order_id})" class="cancel_order" >{$Think.lang.cancelorder}</a></p></if>
                                        <if condition="$list.pay_btn eq 1"><p class="p-button"><a class="button-operate-pay di-in-bl hb-merge gopay" href="{:U('/Home/Cart/cart4',array('order_id'=>$list[order_id]))}" target="_blank"><span>{$Think.lang.inpayment}</span></a></p></if>
                                        <if condition="$list.receive_btn eq 1"><p class="p-button"><a class="button-operate-pay di-in-bl hb-merge orderok" onClick=" if(confirm(' 你确定收到货了吗?')) location.href='{:U('Home/User/order_confirm',array('id'=>$list['order_id']))}'" target="_blank"><span>{$Think.lang.confirmreceipt}</span></a></p></if>
                                        <if condition="$list.returnmoney_btn eq 1 and $list.return_order neq 1"><p class="p-button"><a class="button-operate-pay di-in-bl hb-merge gopay" onClick=" if(confirm('你确定申请退款吗?')) location.href='{:U('Home/User/return_order',array('order_id'=>$list['order_id']))}'" target="_blank"><span>申请退款</span></a></p></if>
										<p class="p-link"><a href="{:U('Home/User/order_detail',array('id'=>$list['order_id']))}" class="order_detail">{$Think.lang.lineitem}</a></p>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </volist>
                <!--订单列表结束-->
            </div>
            <div class="merge">
                <!--<label class="ma-ri-20 di-in-bl cu-po"  name="bottomCheckBoxDiv"><input name="bottomCheckBoxDiv" class="ma-ri-10  ve-al-mi" id="checkallbox" type="checkbox"><span class="ve-al-mi fo-si-14 fo-fa-ta">全选</span></label>-->
                <!--<a class=" di-in-bl hb-merge" href="">合并支付</a>-->
                {$page}
            </div>
        </div>
    </div>
</div>
<div class="he80"></div>

<link rel="stylesheet" href="__STATIC__/css/category.css" type="text/css">
<div id="goods_history" class="layout">
    
   <h3><i class="icon-star"></i>{$Think.lang.hotsale}</h3>
    <ul id="history_list">
        <tpshop sql="SELECT * FROM `__PREFIX__goods` where is_recommend=1 and is_on_sale=1 ORDER BY `goods_id` DESC limit 0,6" key="k" item='v'>
            <li ><a href="{:U('/Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}" ><img src="{$v.goods_id|goods_thum_images=154,205}" ><span>{$bi,$v[goods_id],20|goods_name_shift} <b><if condition="($v[market_price] neq $v[shop_price]) AND ($v[market_price] gt $v[shop_price])" ><em>¥{$v[market_price]}</em> </if>¥ {$v[shop_price]}</b></span></a></li>

        </tpshop>
    </ul>
</div>
<!--------footer-开始-------------->
<include file="Public/footer" />
<!--------footer-结束-------------->


</body>
<script>
    /*$(function () {
     $("#h-s").click(function () {
     $('.ec-ta-x').css('left','124px');
     $('.ec-ta-x').css('width','110px');
     $(this).addClass("cullent");
     $('#q-s').removeClass("cullent");
     });
     });
     */
</script>

<script>
    $(function () {
        //高亮显示
        var active = '{$active_status}';
        if(!active)
            active = 'ALL';
        $('.wddd-li li').removeClass('wddd-red');
        $('#'+active).addClass('wddd-red');

        $("#h-s").mouseover(function () {
            $('.ec-ta-x').css('left','124px');
            $('.ec-ta-x').css('width','110px');
            $(this).addClass("cullent");
        });
        $("#h-s").mouseout(function () {
            $('.ec-ta-x').css('left','0px');
            $('.ec-ta-x').css('width','124px');
            $(this).removeClass("cullent");
        });
    });
    $(function () {
        $("#q-s").mouseover(function () {
            $('.ec-ta-x').css('left','0px');
            $(this).addClass("cullent");
        });
        $("#q-s").mouseout(function () {
            $('.ec-ta-x').css('left','0px');
        });
    });
    //取消订单
    function cancel_order(id){
        if(!confirm("确定取消订单?"))
            return false;
        location.href = "/index.php?m=Home&c=User&a=cancel_order&id="+id;
    }
</script>
</html>